package com.ck.ckcloud.powerenvironment.infrastructure.repository;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.core.toolkit.Wrappers;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.ck.ckcloud.powerenvironment.infrastructure.persistence.DO.DeviceDO;
import com.ck.ckcloud.powerenvironment.infrastructure.persistence.mapper.DeviceMapper;
import org.springframework.stereotype.Repository;


/**
 * 动环设备仓储
 *
 * @author Aiden <a href="mailto:adam602260@gmail.com"/>
 * @version ResourceRepository.java v0.1
 * @create 2019-09-17 21:55
 */
@Repository
public class DeviceRepository extends ServiceImpl<DeviceMapper, DeviceDO> {

	/**
	 * 分页查询
	 *
	 * @param page
	 * @return
	 */
	public IPage listByPage(Page page) {
		return super.page(page, Wrappers.emptyWrapper());
	}

}
